package app.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import app.dao.CommunityDao;
import app.domain.Article;
import app.service.CommunityService;

@Service
public class CommunityServiceimpl implements CommunityService{

	@Autowired
    private CommunityDao communityDao;
	@Override
	public void addArticle(Article article) {	
		communityDao.addArticle(article);
	}
	@Override
	public List<Article> showArticle() {
		// TODO Auto-generated method stub
		return communityDao.showArticle();
	}
	@Override
	public List<Article> findArticle(String articleId) {
		// TODO Auto-generated method stub
		return communityDao.findArticle(articleId);
	}
	@Override
	public void replyAdd1(int articleId) {
		// TODO Auto-generated method stub
		communityDao.replyAdd1(articleId);
	}

}
